﻿using System;
using System.ComponentModel;
using System.Reflection;
using System.Runtime.InteropServices;
using Teigha.Core;

namespace Teigha.TD
{
	public class OdDbObjectOverrule : OdRxOverrule
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdDbObjectOverrule(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbObjectOverrule_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdDbObjectOverrule obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdDbObjectOverrule()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							TD_DbPINVOKE.delete_OdDbObjectOverrule(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public OdDbObjectOverrule() : this(TD_DbPINVOKE.new_OdDbObjectOverrule(), MemoryManager.GetMemoryManager().GetCurrentTransaction() == null)
		{
			MemoryTransaction currentTransaction = MemoryManager.GetMemoryManager().GetCurrentTransaction();
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectOverrule(this.swigCPtr.Handle, true));
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			this.SwigDirectorConnect();
		}

		public new static OdDbObjectOverrule cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbObjectOverrule_cast(OdRxObject.getCPtr(pObj));
			OdDbObjectOverrule result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbObjectOverrule)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbObjectOverrule)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbObjectOverrule)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbObjectOverrule_desc(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("isA", OdDbObjectOverrule.swigMethodTypes1) ? TD_DbPINVOKE.OdDbObjectOverrule_isASwigExplicitOdDbObjectOverrule(this.swigCPtr) : TD_DbPINVOKE.OdDbObjectOverrule_isA(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(this.SwigDerivedClassHasMethod("queryX", OdDbObjectOverrule.swigMethodTypes0) ? TD_DbPINVOKE.OdDbObjectOverrule_queryXSwigExplicitOdDbObjectOverrule(this.swigCPtr, OdRxClass.getCPtr(protocolClass)) : TD_DbPINVOKE.OdDbObjectOverrule_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdDbObjectOverrule createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbObjectOverrule_createObject();
			OdDbObjectOverrule result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbObjectOverrule)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbObjectOverrule)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbObjectOverrule)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdResult open(OdDbObject pSubject, OpenMode mode)
		{
			OdResult result = (OdResult)(this.SwigDerivedClassHasMethod("open", OdDbObjectOverrule.swigMethodTypes3) ? TD_DbPINVOKE.OdDbObjectOverrule_openSwigExplicitOdDbObjectOverrule(this.swigCPtr, OdDbObject.getCPtr(pSubject), (int)mode) : TD_DbPINVOKE.OdDbObjectOverrule_open(this.swigCPtr, OdDbObject.getCPtr(pSubject), (int)mode));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdResult close(OdDbObject pSubject)
		{
			OdResult result = (OdResult)(this.SwigDerivedClassHasMethod("close", OdDbObjectOverrule.swigMethodTypes4) ? TD_DbPINVOKE.OdDbObjectOverrule_closeSwigExplicitOdDbObjectOverrule(this.swigCPtr, OdDbObject.getCPtr(pSubject)) : TD_DbPINVOKE.OdDbObjectOverrule_close(this.swigCPtr, OdDbObject.getCPtr(pSubject)));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdResult erase(OdDbObject pSubject, bool erasing)
		{
			OdResult result = (OdResult)(this.SwigDerivedClassHasMethod("erase", OdDbObjectOverrule.swigMethodTypes5) ? TD_DbPINVOKE.OdDbObjectOverrule_eraseSwigExplicitOdDbObjectOverrule(this.swigCPtr, OdDbObject.getCPtr(pSubject), erasing) : TD_DbPINVOKE.OdDbObjectOverrule_erase(this.swigCPtr, OdDbObject.getCPtr(pSubject), erasing));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbObject deepClone(OdDbObject pSubject, OdDbIdMapping idMap, OdDbObject pOwner, bool bPrimary)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("deepClone", OdDbObjectOverrule.swigMethodTypes6) ? TD_DbPINVOKE.OdDbObjectOverrule_deepCloneSwigExplicitOdDbObjectOverrule__SWIG_0(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner), bPrimary) : TD_DbPINVOKE.OdDbObjectOverrule_deepClone__SWIG_0(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner), bPrimary);
			OdDbObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbObject deepClone(OdDbObject pSubject, OdDbIdMapping idMap, OdDbObject pOwner)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("deepClone", OdDbObjectOverrule.swigMethodTypes7) ? TD_DbPINVOKE.OdDbObjectOverrule_deepCloneSwigExplicitOdDbObjectOverrule__SWIG_1(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner)) : TD_DbPINVOKE.OdDbObjectOverrule_deepClone__SWIG_1(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner));
			OdDbObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbObject wblockClone(OdDbObject pSubject, OdDbIdMapping idMap, OdDbObject pOwner, bool bPrimary)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("wblockClone", OdDbObjectOverrule.swigMethodTypes8) ? TD_DbPINVOKE.OdDbObjectOverrule_wblockCloneSwigExplicitOdDbObjectOverrule__SWIG_0(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner), bPrimary) : TD_DbPINVOKE.OdDbObjectOverrule_wblockClone__SWIG_0(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner), bPrimary);
			OdDbObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbObject wblockClone(OdDbObject pSubject, OdDbIdMapping idMap, OdDbObject pOwner)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = this.SwigDerivedClassHasMethod("wblockClone", OdDbObjectOverrule.swigMethodTypes9) ? TD_DbPINVOKE.OdDbObjectOverrule_wblockCloneSwigExplicitOdDbObjectOverrule__SWIG_1(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner)) : TD_DbPINVOKE.OdDbObjectOverrule_wblockClone__SWIG_1(this.swigCPtr, OdDbObject.getCPtr(pSubject), OdDbIdMapping.getCPtr(idMap), OdDbObject.getCPtr(pOwner));
			OdDbObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private void SwigDirectorConnect()
		{
			if (this.SwigDerivedClassHasMethod("queryX", OdDbObjectOverrule.swigMethodTypes0))
			{
				this.swigDelegate0 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_0(this.SwigDirectorqueryX);
			}
			if (this.SwigDerivedClassHasMethod("isA", OdDbObjectOverrule.swigMethodTypes1))
			{
				this.swigDelegate1 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_1(this.SwigDirectorisA);
			}
			if (this.SwigDerivedClassHasMethod("isApplicable", OdDbObjectOverrule.swigMethodTypes2))
			{
				this.swigDelegate2 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_2(this.SwigDirectorisApplicable);
			}
			if (this.SwigDerivedClassHasMethod("open", OdDbObjectOverrule.swigMethodTypes3))
			{
				this.swigDelegate3 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_3(this.SwigDirectoropen);
			}
			if (this.SwigDerivedClassHasMethod("close", OdDbObjectOverrule.swigMethodTypes4))
			{
				this.swigDelegate4 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_4(this.SwigDirectorclose);
			}
			if (this.SwigDerivedClassHasMethod("erase", OdDbObjectOverrule.swigMethodTypes5))
			{
				this.swigDelegate5 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_5(this.SwigDirectorerase);
			}
			if (this.SwigDerivedClassHasMethod("deepClone", OdDbObjectOverrule.swigMethodTypes6))
			{
				this.swigDelegate6 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_6(this.SwigDirectordeepClone__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("deepClone", OdDbObjectOverrule.swigMethodTypes7))
			{
				this.swigDelegate7 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_7(this.SwigDirectordeepClone__SWIG_1);
			}
			if (this.SwigDerivedClassHasMethod("wblockClone", OdDbObjectOverrule.swigMethodTypes8))
			{
				this.swigDelegate8 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_8(this.SwigDirectorwblockClone__SWIG_0);
			}
			if (this.SwigDerivedClassHasMethod("wblockClone", OdDbObjectOverrule.swigMethodTypes9))
			{
				this.swigDelegate9 = new OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_9(this.SwigDirectorwblockClone__SWIG_1);
			}
			TD_DbPINVOKE.OdDbObjectOverrule_director_connect(this.swigCPtr, this.swigDelegate0, this.swigDelegate1, this.swigDelegate2, this.swigDelegate3, this.swigDelegate4, this.swigDelegate5, this.swigDelegate6, this.swigDelegate7, this.swigDelegate8, this.swigDelegate9);
		}

		private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes)
		{
			MethodInfo method = base.GetType().GetMethod(methodName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, methodTypes, null);
			return method.DeclaringType.IsSubclassOf(typeof(OdDbObjectOverrule));
		}

		private IntPtr SwigDirectorqueryX(IntPtr protocolClass)
		{
			return OdRxObject.getCPtr(this.queryX((OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(protocolClass, false))).Handle;
		}

		private IntPtr SwigDirectorisA()
		{
			return OdRxClass.getCPtr(this.isA()).Handle;
		}

		private bool SwigDirectorisApplicable(IntPtr pOverruledSubject)
		{
			return this.isApplicable(Teigha.Core.Helpers.odrxCreateObjectInternal(pOverruledSubject, false));
		}

		private int SwigDirectoropen(IntPtr pSubject, int mode)
		{
			return (int)this.open((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pSubject, false), (OpenMode)mode);
		}

		private int SwigDirectorclose(IntPtr pSubject)
		{
			return (int)this.close((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pSubject, false));
		}

		private int SwigDirectorerase(IntPtr pSubject, bool erasing)
		{
			return (int)this.erase((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pSubject, false), erasing);
		}

		private IntPtr SwigDirectordeepClone__SWIG_0(IntPtr pSubject, IntPtr idMap, IntPtr pOwner, bool bPrimary)
		{
			return OdDbObject.getCPtr(this.deepClone((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pSubject, false), (OdDbIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternal(idMap, false), (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pOwner, false), bPrimary)).Handle;
		}

		private IntPtr SwigDirectordeepClone__SWIG_1(IntPtr pSubject, IntPtr idMap, IntPtr pOwner)
		{
			return OdDbObject.getCPtr(this.deepClone((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pSubject, false), (OdDbIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternal(idMap, false), (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pOwner, false))).Handle;
		}

		private IntPtr SwigDirectorwblockClone__SWIG_0(IntPtr pSubject, IntPtr idMap, IntPtr pOwner, bool bPrimary)
		{
			return OdDbObject.getCPtr(this.wblockClone((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pSubject, false), (OdDbIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternal(idMap, false), (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pOwner, false), bPrimary)).Handle;
		}

		private IntPtr SwigDirectorwblockClone__SWIG_1(IntPtr pSubject, IntPtr idMap, IntPtr pOwner)
		{
			return OdDbObject.getCPtr(this.wblockClone((OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pSubject, false), (OdDbIdMapping)Teigha.Core.Helpers.odrxCreateObjectInternal(idMap, false), (OdDbObject)Teigha.Core.Helpers.odrxCreateObjectInternal(pOwner, false))).Handle;
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_0 swigDelegate0;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_1 swigDelegate1;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_2 swigDelegate2;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_3 swigDelegate3;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_4 swigDelegate4;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_5 swigDelegate5;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_6 swigDelegate6;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_7 swigDelegate7;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_8 swigDelegate8;

		private OdDbObjectOverrule.SwigDelegateOdDbObjectOverrule_9 swigDelegate9;

		private static Type[] swigMethodTypes0 = new Type[]
		{
			typeof(OdRxClass)
		};

		private static Type[] swigMethodTypes1 = new Type[0];

		private static Type[] swigMethodTypes2 = new Type[]
		{
			typeof(OdRxObject)
		};

		private static Type[] swigMethodTypes3 = new Type[]
		{
			typeof(OdDbObject),
			typeof(OpenMode)
		};

		private static Type[] swigMethodTypes4 = new Type[]
		{
			typeof(OdDbObject)
		};

		private static Type[] swigMethodTypes5 = new Type[]
		{
			typeof(OdDbObject),
			typeof(bool)
		};

		private static Type[] swigMethodTypes6 = new Type[]
		{
			typeof(OdDbObject),
			typeof(OdDbIdMapping),
			typeof(OdDbObject),
			typeof(bool)
		};

		private static Type[] swigMethodTypes7 = new Type[]
		{
			typeof(OdDbObject),
			typeof(OdDbIdMapping),
			typeof(OdDbObject)
		};

		private static Type[] swigMethodTypes8 = new Type[]
		{
			typeof(OdDbObject),
			typeof(OdDbIdMapping),
			typeof(OdDbObject),
			typeof(bool)
		};

		private static Type[] swigMethodTypes9 = new Type[]
		{
			typeof(OdDbObject),
			typeof(OdDbIdMapping),
			typeof(OdDbObject)
		};

		public delegate IntPtr SwigDelegateOdDbObjectOverrule_0(IntPtr protocolClass);

		public delegate IntPtr SwigDelegateOdDbObjectOverrule_1();

		public delegate bool SwigDelegateOdDbObjectOverrule_2(IntPtr pOverruledSubject);

		public delegate int SwigDelegateOdDbObjectOverrule_3(IntPtr pSubject, int mode);

		public delegate int SwigDelegateOdDbObjectOverrule_4(IntPtr pSubject);

		public delegate int SwigDelegateOdDbObjectOverrule_5(IntPtr pSubject, bool erasing);

		public delegate IntPtr SwigDelegateOdDbObjectOverrule_6(IntPtr pSubject, IntPtr idMap, IntPtr pOwner, bool bPrimary);

		public delegate IntPtr SwigDelegateOdDbObjectOverrule_7(IntPtr pSubject, IntPtr idMap, IntPtr pOwner);

		public delegate IntPtr SwigDelegateOdDbObjectOverrule_8(IntPtr pSubject, IntPtr idMap, IntPtr pOwner, bool bPrimary);

		public delegate IntPtr SwigDelegateOdDbObjectOverrule_9(IntPtr pSubject, IntPtr idMap, IntPtr pOwner);
	}
}
